package com.dq.Service.Impl;

import com.dq.Mapper.PercentageMapper;
import com.dq.Pojo.Percentage;
import com.dq.Service.PercentageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PercentageServiceImpl implements PercentageService {
    @Autowired
    private PercentageMapper percentageMapper;
    @Override
    public void add(Percentage percentage) {
        percentageMapper.add(percentage);
    }

    @Override
    public void update(Percentage percentage) {
        percentageMapper.update(percentage);
    }

    @Override
    public Percentage getByid(Integer classId, Integer courseId) {
        return percentageMapper.getByid(courseId,classId);
    }
}
